package com.alpha.gateway;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.stereotype.Repository;

/**
 * 网关服务启动类
 *
 * @author chenruwan
 * @since 2022-01-01
 */
@SpringBootApplication(scanBasePackages = "com.alpha")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.alpha.feign.common")
@MapperScan(basePackages = "com.alpha", annotationClass = Repository.class)
public class AlphaGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(AlphaGatewayApplication.class, args);
    }
}
